Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Stop hardcoding the default port for ssh #20

Merged
merged 1 commit into from
Mar 18, 2022

Conversation

afbjorklund
Copy link
Member

@afbjorklund afbjorklund commented Dec 30, 2021

In case the Port is given in the ssh config already...

The ssh command will know the default port, otherwise.


This makes it work for accessing podman machine VMs

Host podman-machine-default
    IdentityFile /home/anders/.ssh/podman-machine-default
    User core
    Hostname localhost
    Port 37719
    UserKnownHostsFile /dev/null
    StrictHostKeyChecking no

Closes #21

In case the Port is given in the ssh config already...

The ssh command will know the default port, otherwise.

Signed-off-by: Anders F Björklund <[email protected]>
Copy link
Member

@AkihiroSuda AkihiroSuda left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks

@AkihiroSuda AkihiroSuda merged commit e30ed97 into lima-vm:master Mar 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Specifying the host and port in config doesn't work
2 participants